<?php
    /**
     * Created by PhpStorm.
     * User: lance
     * Date: 2017/10/26
     * Time: 15:40
     */

    namespace app\customer\model;
    use think\Model;

    class Customer extends Model
    {
        public function setBirthdayAttr($s_birthday){
            return strtotime($s_birthday);
        }
        public function getBirthdayAttr($s_birthday){
            return date("Y-m-d",$s_birthday);
        }
    }